<?php
/**
 * Created by PhpStorm.
 * User: 唐同广
 * Date: 2017/10/12
 * Time: 16:46
 */
namespace CourseBundle\Service;

use AppBundle\Service\BaseService;

class CourseService extends BaseService{
    public function get(){
        $query = $this->em->createQuery('SELECT p FROM AppBundle:User p');

        $users= $query->getResult();
        return $users;
    }
}